package com.delayqueue.master.common;

import lombok.Getter;
import lombok.Setter;

@Setter
@Getter
public class Response {

    private int code;
    private String message;
    private Object data;

    public Response(int code) {
        this.code = code;
    }

    public Response(int code, Object data) {
        this.code = code;
        this.data = data;
    }

    public Response(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public Response(int code, String message, Object data) {
        this.code = code;
        this.message = message;
        this.data = data;
    }
}
